package com.example.managerment.mapper;

import com.example.managerment.module.dto.PermissionDTO;
import com.example.managerment.module.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 吴建杰
 * @since 2022-09-14
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {

    List<PermissionDTO> getUserRolesByUserId(Integer id);
}
